﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DA
{
   public class quydinh_DA
    {
        DataLINQHocSinhDataContext ql = new DataLINQHocSinhDataContext();
        public void sua(QUYDINH qd)
        {
            QUYDINH qdmh = ql.QUYDINHs.Single(p => p.ID == qd.ID);
            qdmh.TUOITHAPNHAT = qd.TUOITHAPNHAT;
            qdmh.TUOICAONHAT = qd.TUOICAONHAT;
            qdmh.SISOTOIDA = qd.SISOTOIDA;
            qdmh.DIEMDATMON = qd.DIEMDATMON;
            ql.SubmitChanges();
        }
        public object layall()
        {
            return ql.QUYDINHs.ToList();
        }
    }
}
